﻿using IOA.MES.Client.Models.Response;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace IOA.MES.Client.EL1
{
    /// <summary>
    /// WinEL1Tip.xaml 的交互逻辑
    /// </summary>
    public partial class WinEL1Tip : Window
    {
        public WinEL1Tip()
        {
            InitializeComponent();
        }


        public void SetComponent(Component component)
        {
            txtBarCode.Text = component?.BarCode ?? string.Empty;
            txtCellColor.Text = component?.CellColor ?? string.Empty;
            txtEfficiency.Text = (component?.CellEfficiency ?? 0).ToString();
            txtWeldingMachine.Text = component.WeldingMachineName ?? string.Empty;
        }
    }
}
